/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.fiap.view;

import br.com.fiap.modelo.DadosSAC;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet(urlPatterns="/relatorioReclamacoes")
public class RelatorioReclamacao extends HttpServlet {

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        DadosSAC dadosSAC = (DadosSAC) req.getAttribute("modelo");
        
        String HTML = "<HTML><BODY>";
        HTML += "<span>"+dadosSAC.getNomeCliente()+"</span>";
        HTML += "</BODY></HTML>";
        
        resp.getWriter().write(HTML);
        
    }
    
    
}
